package com.leadingsoft.pwxk.service;

import java.io.IOException;
import java.util.List;

import org.springframework.web.multipart.MultipartHttpServletRequest;

import com.leadingsoft.pwxk.dto.CategoryDto;
import com.leadingsoft.pwxk.model.Category;

public interface CategoryService {

	void importData(MultipartHttpServletRequest request) throws IOException;

	List<CategoryDto> getAll();

	/**
	 * 获取当前的所有孩子
	 * 
	 * @param code
	 * @return
	 */
	List<CategoryDto> findByCodeChilds(String code);

	List<CategoryDto> getRoot();

	void getChildCode(Category ca, List<Category> all, List<String> childs);

	List<CategoryDto> get();
}
